<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>百度一下，你就知道</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
        }
        
        body {
            background: #f8f9fa;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            color: #202124;
        }
        
        header {
            display: flex;
            justify-content: flex-end;
            padding: 20px 30px;
            align-items: center;
        }
        
        .nav-links {
            display: flex;
            gap: 20px;
            align-items: center;
        }
        
        .nav-links a {
            text-decoration: none;
            color: #5f6368;
            font-size: 14px;
        }
        
        .nav-links a:hover {
            text-decoration: underline;
            color: #1a73e8;
        }
        
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .logo {
            margin-bottom: 30px;
            text-align: center;
        }
        
        .logo-text {
            font-size: 80px;
            font-weight: 700;
            letter-spacing: -3px;
            color: #2932e1;
        }
        
        .search-container {
            width: 100%;
            max-width: 584px;
            position: relative;
            margin-bottom: 30px;
        }
        
        .search-box {
            width: 100%;
            height: 46px;
            border-radius: 24px;
            border: 1px solid #dfe1e5;
            padding: 0 20px 0 50px;
            font-size: 16px;
            outline: none;
            box-shadow: 0 1px 6px rgba(32, 33, 36, 0.1);
            transition: all 0.3s ease;
        }
        
        .search-box:hover, .search-box:focus {
            box-shadow: 0 1px 10px rgba(32, 33, 36, 0.2);
            border-color: rgba(223, 225, 229, 0);
        }
        
        .search-icon {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: #9aa0a6;
            font-size: 16px;
        }
        
        .search-buttons {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-top: 20px;
        }
        
        .search-btn {
            background: #f8f9fa;
            border: 1px solid #f8f9fa;
            border-radius: 4px;
            color: #3c4043;
            padding: 10px 18px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .search-btn:hover {
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            border: 1px solid #dadce0;
            background: #f8f9fa;
        }
        
        .search-btn.primary {
            background: #2932e1;
            color: white;
            border: 1px solid #2932e1;
        }
        
        .search-btn.primary:hover {
            background: #1b24c9;
            box-shadow: 0 1px 3px rgba(41, 50, 225, 0.3);
        }
        
        footer {
            background: #f2f2f2;
            padding: 15px 30px;
            color: #70757a;
            font-size: 14px;
            text-align: center;
            margin-top: auto;
        }
        
        @media (max-width: 768px) {
            .logo-text {
                font-size: 60px;
            }
            
            .search-container {
                max-width: 90%;
            }
        }
    </style>
</head>
<body>
    <header>
        <div class="nav-links">
            <a href="#">新闻</a>
            <a href="#">图片</a>
            <a href="#">视频</a>
        </div>
    </header>
    
    <main class="main-content">
        <div class="logo">
            <div class="logo-text">百度</div>
        </div>
        
        <div class="search-container">
            <i class="search-icon">🔍</i>
            <input type="text" class="search-box" placeholder="输入关键词搜索...">
        </div>
        
        <div class="search-buttons">
            <button class="search-btn primary">百度一下</button>
            <button class="search-btn">手气不错</button>
        </div>
    </main>
    
    <footer>
        <div class="copyright">
            ©2023 Baidu
        </div>
    </footer>

    <script>
        // 搜索功能实现
        document.querySelector('.search-btn.primary').addEventListener('click', function() {
            const searchTerm = document.querySelector('.search-box').value;
            if(searchTerm.trim() !== '') {
                // 在实际应用中，这里会执行真正的搜索
                alert(`正在搜索: "${searchTerm}"\n（在实际应用中，这里会跳转到搜索结果页面）`);
            } else {
                document.querySelector('.search-box').focus();
            }
        });
        
        // 回车键搜索
        document.querySelector('.search-box').addEventListener('keypress', function(e) {
            if(e.key === 'Enter') {
                document.querySelector('.search-btn.primary').click();
            }
        });
        
        // 手气不错按钮
        document.querySelector('.search-btn:not(.primary)').addEventListener('click', function() {
            const luckySites = [
                "百度百科",
                "百度知道",
                "百度贴吧",
                "百度地图",
                "百度图片"
            ];
            const randomSite = luckySites[Math.floor(Math.random() * luckySites.length)];
            alert(`手气不错！将带您前往: ${randomSite}\n（在实际应用中，这里会跳转到随机站点）`);
        });
    </script>
</body>
</html>